import { createApp } from 'vue'
import { createRouter, createWebHistory } from 'vue-router'
import HelloWorld from './components/HelloWorld.vue'
import Welcome from './components/Welcome.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'


import App from './App.vue'





const routes = [
  { path: '/hello', component: HelloWorld },
  { path: '/welcome', component: Welcome },
]

const router = createRouter({
  history: createWebHistory(),
  routes,
})

const app = createApp(App);
app.use(router);
//app.use(router)这个必须在mount('#app')前面，不然会导致可能无法渲染
app.mount('#app');

